package com.ywyself.controller.front;

import com.jfinal.core.ActionKey;
import com.ywyself.common.pool.DataPool;
import com.ywyself.controller.base.YsController;

/**
 * 首页入口
 * 
 * @author YuWenYue
 */
public class IndexController extends YsController {

    @ActionKey("/")
    public void index() {
        forwardAction("/diary");
    }

    public void index1() {
        setPageTitle("index");
        // 视图路径
        setAttr("viewPath", DataPool.getViewPath());
        render(DataPool.getViewPath() + "/index.html");
        // List<String> listActionKeys = JFinal.me().getAllActionKeys();
        // StringBuffer sb = new StringBuffer();
        // for (String s : listActionKeys) {
        // if (s.contains("Browser") || s.contains("Request") ||
        // s.contains("getIPAddress")) {
        // continue;
        // }
        // if (!s.startsWith("/admin/")) {
        // continue;
        // }
        // sb.append(s).append("<br/>");
        // }
        // renderHtml(sb.toString());
    }
}
